import request from '@/utils/http'

const getListApi = (params) => {
  return request({
    method: 'get',
    url: 'api/teacher/list',
    params,
  })
}
const deleteApi = (params) => {
  return request({
    method: 'delete',
    url: 'api/teacher',
    params,
  })
}

const addApi = (data) => {
  return request({
    method: 'post',
    url: 'api/teacher',
    data,
  })
}
const getDetailApi = (params) => {
  return request({
    method: 'get',
    url: 'api/teacher',
    params,
  })
}

export { getListApi, deleteApi, addApi, getDetailApi }
